package com.yoso.shop.interfaces.vo.order;


import com.yoso.base.interfaces.vo.BaseVo;
import com.yoso.shop.interfaces.vo.commodity.CommodityVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author shizejin
 * @date 2022/1/29
 * @description:
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("订单Vo")
public class OrderVo extends BaseVo {
    @ApiModelProperty("订单编号")
    @NotBlank(message = "订单编号不能为空")
    private String code;

    @ApiModelProperty("商品编号")
    @NotBlank(message = "商品编号不能为空")
    private String commodityCode;

    @ApiModelProperty("商品名")
    private String commodityName;

    @NotBlank(message = "产品数量不能为空")
    @ApiModelProperty("数量")
    private Integer count;

    @ApiModelProperty("主分类")
    private String master;

    @ApiModelProperty("次分类")
    private String branch;

    @ApiModelProperty("尺寸")
    private String size;

    @ApiModelProperty("颜色")
    private String color;

    @ApiModelProperty("单价")
    private String price;

    @ApiModelProperty("小计")
    private String subtotal;

    @ApiModelProperty("状态")
    private String status;

    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty("用户id")
    private String buyerId;

    @ApiModelProperty("用户")
    private String buyerName;

    @ApiModelProperty("电话")
    private String buyerPhone;

    @ApiModelProperty("订单时间")
    private String orderTime;

    @ApiModelProperty("收货地址")
    private String buyerAddr;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否同意取消订单")
    private String cancelFlag;

    @ApiModelProperty("商品信息")
    private CommodityVo commodity;
}
